/* ===== SECTION ===== */
.council-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #f5f7fb, #e9efff);
}

/* ===== TITLE ===== */
.section-title {
  text-align: center;
  font-weight: 800;
  color: #0b2e59;
  margin-bottom: 25px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #0b2e59;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  animation: lineGrow 1s ease;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 80px; }
}

/* ===== CARD ===== */
.council-card {
  background: #fff;
  text-align: center;
  padding: 20px 10px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;

  max-width: 240px;
  width: 100%;
  height: 280px; /* 🔥 increased for taller image */

  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  position: relative;
  overflow: hidden;

  /* animation */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

/* ===== STAGGER ANIMATION ===== */
.council-card:nth-child(1){animation-delay:0.1s;}
.council-card:nth-child(2){animation-delay:0.2s;}
.council-card:nth-child(3){animation-delay:0.3s;}
.council-card:nth-child(4){animation-delay:0.4s;}
.council-card:nth-child(5){animation-delay:0.5s;}
.council-card:nth-child(6){animation-delay:0.6s;}
.council-card:nth-child(7){animation-delay:0.7s;}
.council-card:nth-child(8){animation-delay:0.8s;}
.council-card:nth-child(9){animation-delay:0.9s;}
.council-card:nth-child(10){animation-delay:1s;}

/* ===== HOVER ===== */
.council-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* ===== GRADIENT BORDER ===== */
.council-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #0b2e59, #3a7bd5);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
}

.council-card:hover::before {
  opacity: 1;
}

/* ===== IMAGE (TALL PORTRAIT) ===== */
.council-card img {
  width: 150px;
  height: 180px; /* 🔥 increased height */
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #0b2e59;
  transition: 0.4s;
}

/* IMAGE HOVER */
.council-card:hover img {
  transform: scale(1.08);
}

/* ===== TEXT ===== */
.council-card h6 {
  font-weight: 600;
  margin: 5px 0;
  min-height: 40px;
  font-size: 14px;
}

.council-card p {
  font-size: 14px;
  color: #666;
  min-height: 20px;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CHAIRMAN HIGHLIGHT ===== */
.council-card:first-child {
  border: 2px solid gold;
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .council-card {
    max-width: 220px;
    height: 320px;
  }

  .council-card img {
    width: 130px;
    height: 160px;
  }
}

@media (max-width: 576px) {
  .council-card {
    max-width: 200px;
    height: 300px;
  }

  .council-card img {
    width: 110px;
    height: 140px;
  }
}